package com.usst.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.usst.entity.User;
import com.usst.repository.UserRepository;
import com.usst.service.UserService;

@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserRepository userRepo;

	@Override
	public User save(User user) {
		return userRepo.save(user);
	}

	@Override
	public User update(User user){
		return userRepo.save(user);
	}

	@Override
	public void delete(User user) {
		userRepo.delete(user);
	}

}
